﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using BLL;
using Model;

namespace POS.UserControl
{
    public partial class Uc_Warehouse : DevExpress.XtraEditors.XtraUserControl
    {
        public Uc_Warehouse()
        {
            InitializeComponent();
        }
        WarehouseBLL warehouseBLL = new WarehouseBLL();
        Dictionary<string, string> dicWarehouse = new Dictionary<string, string>();
        public void InitBindWarehouse()
        {
            this._Warehouse.Properties.Items.Clear();
            foreach (B_Warehouse w in warehouseBLL.GetWarehouses(MemberInfo.Store.StoreID))
            {
                this._Warehouse.Properties.Items.Add(w.WarehouseName);
                dicWarehouse.Add(w.WarehouseName, w.WarehouseID);
            }
        }
    }
}
